.dappPageWrapper,
.dappModalWindowWrapper,
.indexLayout .routerContainer .dappPageWrapper {
  & > * {
    margin: 1rem 0;
  }

  .tileBlock {
    width: 90%;
    max-width: 505px;
    height: auto;
    margin-right: auto;
    margin-left: auto;
    padding: 20px;
    min-height: 0;
    border-radius: $borderRadius;
    box-shadow: 4px 4px 8px 0 rgba(11, 52, 102, 0.02);
    transition: background-color $transition1;

    &.accountBlock {
      min-height: 0;
    }

    .tileHeadline {
      gap: 0.5rem;
      justify-content: center;
      width: 100%;
      margin: 0;
      padding-bottom: 20px;
      font-weight: 400;
      font-family: $firaSans;
      text-align: center;
      align-items: center;
      display: inline-flex;

      &.withBtn {
        display: grid;
        grid-template-rows: 100%;
        grid-template-columns: 40px 1fr;
        align-items: center;
        padding-right: 40px;
      }

      @media (max-width: $mobile) {
        font-size: 22px;

        &.withBtn {
          grid-template-columns: 30px 1fr;
          padding-right: 30px;

          .returnBtn {
            i,
            .ov-icon {
              width: 25px;
              height: 25px;
              font-size: 16px;
              line-height: 25px;
            }
          }
        }
      }

      .ov-icon {
        display: block;
        width: 25px;
        height: 25px;
        margin-left: 10px;
        cursor: pointer;
        opacity: 0.9;
        transition: background-color $transition1;
      }

      .returnBtn {
        display: block;
        text-decoration: none;

        i,
        .ov-icon {
          width: 40px;
          height: 40px;
          margin-left: 0;
          font-size: 20px;
          line-height: 40px;
          transition: color $transition1;
        }
      }
    }

    .tileSmallHeadline {
      color: $blackLighter;
      font-weight: 700;
      transition: color $transition1;
      will-change: color;
    }

    .tileText {
      margin: 5px 0;
      font-size: 16px;
      text-align: center;
    }
  }

  .tileTextBg {
    margin: 5px 0;
    padding: 12px 15px;
    font-size: 15px;
    text-align: center;
    border: 1px solid;
    border-radius: $borderRadiusMd;
  }

  ._icon-wrapped {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    width: 2rem;
    border: 0;
    transition: $tempTransparent;

    &:hover {
      box-shadow: $tileShadow;
    }

    & > svg.ov-icon {
      margin: 0 !important;
      padding: 0;
      height: 2rem;
      width: 2rem;
    }

    &.-rounded {
      border-radius: 1rem !important;
      overflow: hidden !important;
    }

    &.-sm {
      width: 2rem;
      height: 2rem;
    }
  }
}

.genericListContainer {
  &.balancesList,
  &.transactionsListContainer,
  &.contactsListContainer {
    width: 100%;
    //height: calc(100% - 170px);
    overflow-x: hidden;
    height: 100%;
    overflow-y: auto !important;
    //border-radius: $borderRadius;
    //box-shadow: $shadowInset;
    transition: 0.1s ease;
    transition-property: background-color, box-shadow;

    &::-webkit-scrollbar {
      width: 10px;
      background-color: $tempTransparent;
    }

    &::-webkit-scrollbar-thumb {
      border-radius: $borderRadius;
      cursor: pointer;
    }

    &::-webkit-scrollbar-track {
      background-color: $tempTransparent;
      border-radius: $borderRadius;
    }
  }

  .nothingFound {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-align: center;
    margin: 2rem 0;
  }
}

.dappPageWrapper {
  padding: 1rem 0 0;
}

@media (max-width: $mobile) {
  section.layout-content.layoutContent {
    .routerContainer {
      .dappPageWrapper {
        padding: 1rem 0;
        padding-top: calc(1rem + 32px);
        overflow-x: hidden;
      }
    }
  }

  ._icon-wrapped {
    &.rounded {
      border-radius: 50%;
    }
  }

  button.button {
    font-size: 16px !important;

    &.-lg {
      &.-block {
        padding: 0.3rem 0 !important;

        &.-secondary {
          padding: 0.3rem 0 !important;
          font-size: 16px !important;
        }
      }

      &.-link {
        margin: 0.2rem !important;
      }
    }

    &.-circle {
      display: inline-flex;
    }
  }

  .form-input-group {
    .form-input input {
      font-size: 12px !important;
    }
  }

  .dappPageWrapper {
    .tileBlock {
      padding: 0.75rem 1rem 1rem !important;
      width: 90vw;
      margin-top: 0;

      .balancesList,
      .transactionsListContainer,
      .contactsListContainer {
        //background-color: #f7fafc;
        margin: 0.25rem 0 !important;

        & > * {
          padding: 0.3rem 0.5rem !important;

          &:last-child {
            border-bottom: none !important;
          }
        }
      }

      &.contactTile {
        display: flex;
        flex-direction: column;
        height: auto;
        overflow: hidden;
        justify-content: stretch;
        margin-top: 0;

        .contactsListContainer {
          overflow-x: hidden;
          overflow-y: auto;
          display: flex;
          flex-direction: column;
          align-items: stretch;
          height: auto;
          justify-content: stretch;

          .contactItem {
            padding: 0 0.5rem;
            gap: 0.2rem;
            height: 55px;

            .contactInfo {
              .contactName {
                font-size: 16px;
                line-height: 150%;
              }

              .contactAddress {
                font-size: 10px;
                font-family: $firaSans;
              }
            }
          }
        }
      }

      .transactionsListContainer {
        overflow-x: hidden;
      }

      .animatedCheckmark {
        //max-height: 5rem;
      }

      .tileHeadline {
        font-size: 18px;
        line-height: 30px;
        padding-top: 0 !important;
        padding-bottom: 0.5rem !important;

        em,
        i {
          height: min-content;
          width: min-content;
          line-height: 100%;
        }
      }
    }

    & > * {
      margin: 1rem auto;

      &:first-child {
        margin-top: 0;
      }

      &:last-child {
        margin-bottom: 0;
      }
    }
  }
}

//@media (min-width: $mobile+1) and () {
//
//}
//

.inkline.-dark {
  .dappPageWrapper {
    .tileSmallHeadline {
      color: $white;
    }
    .orDivider {
      .line {
        background-color: transparentize($color: $gray, $amount: 0.5);
      }
      .orText {
        color: transparentize($color: $gray, $amount: 0.3);
      }
    }
  }
}
